-
Notifications
You must be signed in to change notification settings - Fork 24
feat!: remove built-ins polyfills on node >= 18 #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 4f118d2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
aa1ebaa
to
38c31e3
Compare
38c31e3
to
815c86a
Compare
37b9a77
to
8907c5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 60 out of 62 changed files in this pull request and generated no comments.
Files not reviewed (2)
- package.json: Language not supported
- packages/blob/package.json: Language not supported
Comments suppressed due to low confidence (1)
packages/blob/test/all.spec.js:1
- The removal of all test files eliminates regression tests for the native built-ins. It is recommended to add new tests verifying that Node >=18 correctly supports the built-in implementations to ensure ongoing reliability.
import { test as blobTest } from "./blob.spec.js"
@jacob-ebey It seems like all is fine to be merged and released. |
I don't think we plan to maintain this package any longer because we can use built in node |
@brophdawg11 If so, we should maybe add a deprecation notice to the repo + npm packages and maybe also archive the repo? |
@brophdawg11 Just noticed |
yeah probably - I'll check with the team What exactly is I did find this as a potential way to do agent-like stuff via |
|
@talentlessguy We're only using the let response = await fetch(releaseUrl, {
agent: agent("https://api.github.com"),
headers,
}); let resourceUrl = tarballUrl; // could be a user-provided URL
// ...
resourceUrl = `https://api.github.com/repos/${info.owner}/${info.name}/releases/assets/${assetId}`;
// ...
let response = await fetch(resourceUrl, {
agent: agent(resourceUrl),
headers,
}); where import { ProxyAgent } from "proxy-agent";
const defaultAgent = new ProxyAgent();
const httpsAgent = new ProxyAgent();
httpsAgent.protocol = "https:";
function agent(url: string) {
return new URL(url).protocol === "https:" ? httpsAgent : defaultAgent;
} I guess that's showing us that using the CC/ @markdalgleish since you did both the original |
I created a PR to remove Not sure if that's a use-case we want to support though 🤔 |
No description provided.